package com.happy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.happy.entity.QuestionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface QuestionMapper extends BaseMapper<QuestionEntity> {

    @Select (value = "select * from question_info qi left join category_info ci on ci.id=qi.categoryId") // where qi.title like '%#{title}%'
    List<QuestionEntity> queryList ( @Param ( "title" ) String title );

}
